﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="reportBusiness.aspx.cs"
    Inherits="PeisongWeb.admin.reportBusinessList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>
<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>提货单</title>
    <!--#include file="style.inc"-->
    <script type="text/javascript">
        function importantConfirm() {
            return confirm('您确定要生成今天的提货单?');
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <uc1:top ID="Top1" runat="server" />
    <uc2:menu ID="Menu1" runat="server" />
    <div id="admin-body">
        <h2 class="section-cms">
            提货单
        </h2>
        <input type="button" id="preview" value=" 预览 " onclick="window.open('reportBusinessdetail.aspx?ff=0')" />
        <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> <span style='<%=hasSpecialPermission()?"": "display:none" %>'>
            <asp:Button ID="bt_create" runat="server" Text=" 生成 " OnClick="bt_create_click" OnClientClick="return importantConfirm();" />
        </span>
        <p>
            &nbsp;&nbsp;</p>
        <div id="admin_list_content">
            <table cellpadding="0" cellspacing="0">
                <tr class="header-row">
                    <th>
                        提货单号
                    </th>
                    <th>
                        产品数
                    </th>
                    <th>
                        订单数目
                    </th>
                    <th>
                        订单总金额
                    </th>
                    <th>
                        创建人
                    </th>
                    <th>
                        创建日期
                    </th>
                    <th>
                        查看
                    </th>
                </tr>
                <asp:Repeater ID="rpt_list" runat="server">
                    <ItemTemplate>
                        <tr class='<%# Container.ItemIndex%2==0? "alt":"row-alt"  %>'>
                            <td>
                                <%# Eval("rbno")%>
                            </td>
                            <td>
                                <%# Eval("productnum")%>
                            </td>
                            <td>
                                <%# Eval("ordernum")%>
                            </td>
                            <td>
                                <%# string.Format("{0:F2}", Eval("orderamount"))%>
                            </td>
                            <td>
                                <%# Eval("realname")%>
                            </td>
                            <td>
                                <%# Eval("createdt")%>
                            </td>
                            <td>
                                <a href="reportBusinessDetail.aspx?ff=<%# Eval("rbno") %>" target="_blank">详细内容</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <div id="page">
                <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                    runat="server" AlwaysShow="True" PageSize="20" InvalidPageIndexErrorMessage="无效页码"
                    PageIndexOutOfRangeErrorMessage="页码超出范围" ShowCustomInfoSection="Left" CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 "
                    CustomInfoTextAlign="Left" HorizontalAlign="Right" NextPageText="下一页" FirstPageText="首页"
                    LastPageText="末页" PrevPageText="上一页" OnPageChanged="AspNetPager1_PageChanged">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    <ext:Window runat="server" ID="sendSMSWindow" Title="发送短信" Height="350px"
        Width="600px" BodyStyle="padding: 6px; background-color: #fff;" AutoScroll="true"
        Modal="True" Resizable="false" ShowOnLoad="false" Draggable="true" Icon="ApplicationViewDetail">
        <Body>
            <div id="admin_edit_content" style="width:550px;">
                <p>&nbsp;&nbsp;</p>
                <ul>
                    <li>
                        <label>手机号码</label>
                        <asp:TextBox runat="server" ID="txtPhones" Width="385px"></asp:TextBox>
                    </li>
                    <li>
                        <label>内容</label>
                        <asp:TextBox runat="server" ID="txtContent" TextMode="MultiLine"></asp:TextBox>
                    </li>
                    <li>
                        <label>&nbsp;</label>
                    </li>
                    <li>
                        <label>&nbsp;</label>
                        <asp:Button runat="server" ID="btnSendSMS" Text="发送短信" 
                            onclick="btnSendSMS_Click" />
                    </li>
                </ul>
            </div>
        </Body>
    </ext:Window>
    </form>
</body>
</html>
